package com.ynny.one_dimensional_array01;

public class ArrayDemo04 {

    public static void main(String[] args) {

        int i = 1 * 5 ;

        //如何直接获取数组的长度
        int[] arrayInt = new int[i];

        System.out.println("数组的长度:" + arrayInt.length);

        //如果快速给数组赋值 或 取值
        for (int j = 0; j < arrayInt.length; j++) {
            arrayInt[j] = 10 * j;
        }

        for (int k = 0; k < arrayInt.length; k++) {

            System.out.println("下标为" + k + "值:"+arrayInt[k]);
        }




    }
}
